package com.flyco.modules.oms.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.flyco.poi.excel.annotation.Excel;
import lombok.Data;

import java.io.Serializable;

/**
 * @Description: 订单明细
 * @Author: flyco
 * @Date:   2019-12-10
 * @Version: V1.0
 */
@Data
@TableName("oms_order_item")
public class OmsOrderItem implements Serializable {
    private static final long serialVersionUID = 1L;
    
	/**id*/
	@TableId(type = IdType.ASSIGN_ID)
	@JsonSerialize(using= ToStringSerializer.class)
	private Long id;
	/**订单id*/
	private String orderId;
	/**订单编号*/
	private String orderSn;
	/**商品id*/
	private Long productId;
	/**商品图片*/
	private String productPic;
	/**商品货号*/
	@Excel(name = "商品货号", width = 15)
	private String productSn;
	/**商品名称*/
    @Excel(name = "商品名称", width = 25)
	private String productName;
	/**商品品牌*/
    @Excel(name = "商品品牌", width = 15)
	private String productBrand;
	/**销售价格*/
    @Excel(name = "销售价格", width = 15)
	private java.math.BigDecimal productPrice;
	/**购买数量*/
    @Excel(name = "购买数量", width = 15)
	private Integer productQuantity;
	/**商品sku编号*/
	private Long productSkuId;
	/**商品sku条码*/
	private String productSkuCode;
	/**商品分类id*/
	private Long productCategoryId;
	/**商品的销售属性*/
	private String sp1;
	/**sp2*/
	private String sp2;
	/**sp3*/
	private String sp3;
	/**商品促销名称*/
	private String promotionName;
	/**商品促销分解金额*/
	private java.math.BigDecimal promotionAmount;
	/**优惠券优惠分解金额*/
	private java.math.BigDecimal couponAmount;
	/**积分优惠分解金额*/
	private java.math.BigDecimal integrationAmount;
	/**该商品经过优惠后的分解金额*/
	private java.math.BigDecimal realAmount;
	/**商品赠送积分*/
	private Integer giftIntegration;
	/**商品赠送成长值*/
	private Integer giftGrowth;
	/**商品销售属性:[{"key":"颜色","value":"颜色"},{"key":"容量","value":"4G"}]*/
	private String productAttr;
	/**外部来源类型：ad,cps,ref*/
	private String netSourceType;
	/**一级来源(keyname)*/
	private String netSourceArg1;
	/**二级来源(keysource)*/
	private String netSourceArg2;
	/**三级来源*/
	private String netSourceArg3;
	/**四级来源*/
	private String netSourceArg4;
	/**来源明细*/
	private String netSourceArgdetail;
	/**商品促销金额*/
	private java.math.BigDecimal totalPromotionAmount;
	/**优惠券优惠金额*/
	private java.math.BigDecimal totalCouponAmount;
	/**积分优惠金额*/
	private java.math.BigDecimal totalIntegrationAmount;
	/**红包优惠金额*/
	private java.math.BigDecimal totalRedbagAmount;
	/**小计金额(单价*数量-促销-优惠券-积分-红包)*/
	private java.math.BigDecimal totalRealAmount;
	/**申请退货数量*/
	private Integer returnApplyQuantity;
	/**实际退货数量*/
	private Integer returnRealQuantity;
	/**订单商品类型，0：普通商品，1：赠品*/
    //@Excel(name = "商品类型", width = 15)
	private String orderProductType;
	/**售后申请时和该商品同组的其他商品id，多个用逗号分隔*/
    private String returnGroupIds;
	/**来源类型：默认值，normal*/
	private String itemSourceType;
	/**来源数据集(json)*/
	private String itemSourceData;
	/**来源id(Long)*/
	private Long itemSourceId;
	/**来源id(String)*/
	private String itemSourceIdS;

    @TableField(exist = false)
    private String orderProductType_dictText;
}
